package com.momo.forword;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableFeignClients({
        "com.momo.upms.api"
})
@EnableResourceServer
@ComponentScans({
        @ComponentScan("com.momo.common.core"),
        @ComponentScan("com.momo.common.auth"),
        @ComponentScan("com.momo.common.feign")
})
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class MomoForwordApplication {

    public static void main(String[] args) {
        SpringApplication.run(MomoForwordApplication.class, args);
    }

}
